package com.software.work;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.HashSet;
import java.util.Set;


public class Student {

    private String studentNo;// 学号
    private String telephone;//手机号
    private String studentName;//昵称
    private String sex;//性别

    private Set<Course> courses = new HashSet<>();

    @Override
    public String toString() {
        return "Student{" +
                "studentNo='" + studentNo + '\'' +
                ", telephone='" + telephone + '\'' +
                ", studentName='" + studentName + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    public Student() {
    }

    public Student(String studentNo, String telephone, String studentName, String sex) {
        this.studentNo = studentNo;
        this.telephone = telephone;
        this.studentName = studentName;
        this.sex = sex;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Set<Course> getCourses() {
        return courses;
    }

    public void setCourses(Set<Course> courses) {
        this.courses = courses;
    }
}
